<include file="Public:header" />
<div class="container main">
    <include file="Public:left" />
    <div class="w790">
        <div class="h">
            <a href="{:U('index')}" class="btn btn-info">
                <i class="glyphicon glyphicon-circle-arrow-left"></i> 返回列表
            </a>
        </div>
        <form class="checkoutform form-horizontal" action="{:U('Admin/Node/insert')}" method="post">
            <div class="table_ container">
                <div class="form-group">
                    <label class="col-sm-2 control-label">节点名称</label>
                    <div class="col-sm-10">
                        <input class="form-control" name="name"  type="text" id="name" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">标题</label>
                    <div class="col-sm-10">
                        <input class="form-control" name="title"  type="text" id="title" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">状态</label>
                    <div class="col-sm-10">
                        <label class="checkbox-inline">
                            <input name="status" type="radio" id="radio" value="1" checked>
                            启用</label>
                        <label class="checkbox-inline">
                            <input type="radio" name="status" id="radio2" value="0">
                            禁用</label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">备注</label>
                    <div class="col-sm-10">
                        <input class="form-control" name="remark"  type="text" id="remark" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">排序</label>
                    <div class="col-sm-10">
                        <input class="form-control" name="sort"  type="text" id="sort" size="50" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">菜单分组</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="gid" id="gid">
                            <option value="">请选择</option>
                            <volist name="s_gid" id="vo">
                                <option value="{$vo.id}">{$vo.name}</option>
                            </volist>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">父级节点</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="pid" id="pid">
                            <option value="0">最高级</option>
                            <volist name="s_pid" id="vo">
                                <option value="{$vo.id}" 
                                <if condition="$pid==$vo['id']">selected="selected"</if>
                                >{:getdeepstr($vo['cl'])}{$vo.title}
                                </option>
                            </volist>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">级别</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="level" >
                            <option value="1" 
                            <eq name="level" value="1">selected="selected"</eq>
                            >应用
                            </option>
                            <option value="2" 
                            <eq name="level" value="2">selected="selected"</eq>
                            >模块
                            </option>
                            <option value="3" 
                            <eq name="level" value="3">selected="selected"</eq>
                            >操作
                            </option>
                        </select>
                    </div>
                </div>
                <div class="pages">
                    <button type="submit" class="btn btn-success">提交</button>
                </div>
            </div>
        </form>
    </div>
    <div class="clear">
    </div>
</div>
</body></html>